/**
 * Copyright:  Copyright (c) 2013
 *
 * @FileName		: ProfitAndLossMachineServiceImpl.java
 * @PageName		: 손익현황 - 공장별
 * @Date			: 오전 11:15:31
 * @LastModifier	: 최경민
 * @LastModifyDate	: 
 * @LastModifier	: 
 * Change history	:
 */
package com.pulp.management.service.impl;

import java.sql.SQLException;
import java.util.List;

import com.pulp.management.dao.ProfitAndLossMachineDAO;
import com.pulp.management.model.ProfitAndLossMachineInfo;
import com.pulp.management.service.ProfitAndLossMachineService;

/**
 * @author Administrator
 * 
 */
public class ProfitAndLossMachineServiceImpl implements ProfitAndLossMachineService {
	private ProfitAndLossMachineDAO profitAndLossDAO;

	/**
	 * ProfitAndLossDAO 객체를 반환한다.
	 * 
	 * @return the profit and loss dao
	 */
	public ProfitAndLossMachineDAO getProfitAndLossDAO() {
		return profitAndLossDAO;
	}

	/**
	 * ProfitAndLossDAO 객체를 설정한다.
	 * 
	 * @param profitAndLossDAO
	 */
	public void setProfitAndLossDAO(ProfitAndLossMachineDAO profitAndLossDAO) {
		this.profitAndLossDAO = profitAndLossDAO;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.pulp.management.service.ProfitAndLossService#getMachinelInfoList()
	 */
	@Override
	public List<ProfitAndLossMachineInfo> getMachinelInfoList() throws SQLException{
		return profitAndLossDAO.getMachinelInfoList();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.pulp.management.service.ProfitAndLossService#getMonthlyInfoList()
	 */
	@Override
	public List<ProfitAndLossMachineInfo> getMonthlyInfoList() throws SQLException {
		return profitAndLossDAO.getMonthlyInfoList();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.pulp.management.service.ProfitAndLossService#getTableInfoList()
	 */
	@Override
	public List<ProfitAndLossMachineInfo> getTableInfoList() throws SQLException {
		return profitAndLossDAO.getTableInfoList();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.pulp.management.service.ProfitAndLossService#getTotalYearColumnInfoList
	 * ()
	 */
	@Override
	public List<ProfitAndLossMachineInfo> getTotalYearColumnInfoList() throws SQLException {
		return profitAndLossDAO.getTotalYearColumnInfoList();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.pulp.management.service.ProfitAndLossService#getTotalYearPieInfoList
	 * ()
	 */
	@Override
	public List<ProfitAndLossMachineInfo> getTotalYearPieInfoList() throws SQLException {
		return profitAndLossDAO.getTotalYearPieInfoList();
	}

}
